package com.bangyu.monitor.modular.system.mapper;

import com.bangyu.monitor.core.common.node.TreeviewNode;
import com.bangyu.monitor.core.common.node.ZTreeNode;
import com.bangyu.monitor.modular.system.entity.Bridge;
import com.bangyu.monitor.modular.system.entity.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author stylefeng
 * @since 2018-12-07
 */
public interface BridgeMapper extends BaseMapper<Bridge> {


    /**
     * 获取所有部门列表
     */
    Page<Bridge> pageAll(@Param("page") Page page,
            @Param("condition") String condition);


    void delete(@Param("bridgeId") Long bridgeId);

    Page<Bridge> pageByManagerPerson(@Param("page") Page page,@Param("managerPersonId") Long managerPersonId,@Param("condition") String condition);

    Page<Bridge> pageByShowToTourist(@Param("page") Page page,@Param("condition") String condition);


    List<Bridge> listAll(@Param("condition") String condition);
    List<Bridge> listByManagerPerson(@Param("managerPersonId") Long managerPersonId,@Param("condition") String condition);

    List<Bridge> listByShowToTourist(@Param("condition") String condition);

    Bridge getByDeviceNo(@Param("deviceNo") String deviceNo);

    Bridge getByBeamNo(@Param("beamNo") String beamNo);




}
